<?php
// the basic form to input the stuff...
?>
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
<!--
body, form{
font:12px 'lucida sans', georgia, verdana;
color:#555;
margin:0;
line-height:1.5;
text-align:center;
}

form{
text-align:left;
width:600px;
margin:12px auto;
}

label{
display:block;
font-weight:bold;
margin-top: 4px;
}

input[type='text']{
width:550px;
padding:2px;
border:1px solid #69c;
color:#999;
}

input[type='submit']{
width:100px;
background:#69c;
border:2px solid #379;
border-top:2px solid #69e;
border-left:2px solid #69e;
color:#fff;
margin:4px 0;
}

textarea{
width:550px;
height:550px;
background:#eee;
border:1px solid #69c;
font:12px mono-space;
line-height:1.3;
padding:2px;
}
-->
</style>
</head>
<body>
<h1>Da CSV Reada!</h1>
<form enctype="multipart/form-data" method="POST" action="">
<?php
if (!Blib::isPost() || $this->get('isError', false)) {
    $this->input('id');
    $this->input('name');
    $this->input('formLink', $this->get('formLink', 'http://racingguide.centrebet.com/formguide.html'));
    $this->input('expires');
    $this->input('data', '', '', 'file');
    $this->input('submit', 'convert!', '', 'submit');
}

if (Blib::isPost()) {
    if (!$this->get('isError', false)) {
        $this->input('result', $this->get('result'), '', 'textarea', 'readonly="readonly" onfocus="this.select();"');
        echo '<a href="" style="color:#69c;">back</a>';
    } else {
        echo '<label class="error">ERROR</label><div class="error">' . $this->get('error') . '</div>';
    }
}
?>
</form>
</body>
</html>